# coding=utf-8

#参考新旧对比，https://www.360kuai.com/mob/transcoding?url=94d3350ab5ec9dbd0&cota=4&tj_url=so_rec&sign=360_e39369d1&refer_scene=so_2

""" 
    新版个人纳税计算
    salary_new      月工资
    grade_new       纳税等级
    money_new       专项扣除(三险一金)
    pay_taxes_new   纳税所得额
    taxation_new    个人税额
"""
salary_new = float(input('请输入您的月工资：'))
grade_new=0
pay_taxes_new=salary_new - 5000

if pay_taxes_new<=0:
    print('新版纳税情况，纳税级数：%s,您无需缴纳个人所得税额。'% grade_new)
else:
    if pay_taxes_new <= 3000:
        taxation_new=pay_taxes_new*0.03
        grade_new =1
    elif pay_taxes_new <= 12000:
        taxation_new=pay_taxes_new * 0.1 - 210
        grade_new =2
    elif pay_taxes_new <= 25000:
        taxation_new=pay_taxes_new * 0.2 - 1410
        grade_new =3
    elif pay_taxes_new <= 35000:
        taxation_new=pay_taxes_new * 0.25 -2660
        grade_new =4
    elif pay_taxes_new <= 55000:
        taxation_new=pay_taxes_new * 0.3 -4410
        grade_new +=5
    elif pay_taxes_new <= 80000:
        taxation_new=pay_taxes_new * 0.35 - 7160
        grade_new =6
    else:
         taxation_new=pay_taxes_new * 0.45 - 15160
         grade_new =7
    print("以下为新版个人纳税情况:\n纳税级数：%s,应纳个人所得税税额为:%.2f 元,到手工资：%s 元," % (grade_new,taxation_new,salary_new-taxation_new))